package sg.ImageShack.control
{
	import com.adobe.cairngorm.control.FrontController;
	
	import sg.ImageShack.commands.BackendCommand;
	import sg.ImageShack.events.BackendEvent;
	import sg.ImageShack.models.AppContext;

	public class ImageShackController extends FrontController
	{
		public function ImageShackController()
		{
			addModel(AppContext.MODEL_NAME, AppContext);
			
			addCommand(BackendEvent.UPLOAD_IMAGE, BackendCommand);
			addCommand(BackendEvent.CANCEL_UPLOADING, BackendCommand);
		}
		
	}
}